package uk.ac.manchester.tewpl.iceiface.client.explorer;

import uk.ac.manchester.tewpl.iceiface.client.explorer.types.Uri;

import com.extjs.gxt.ui.client.util.Point;
import com.google.gwt.widgetideas.graphics.client.Color;

/*
 * This class temporarily contains static data that
 * needs to be migrated to an external store - e.g. XML 
 */
public class DATA {
	
	// Airport data and formatting
	public static final Uri [] uris = new Uri [] {
			//new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Time_Period"),
			new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Learning_Activity"),
			new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Index_Clinical_Situation"),
			new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Competency"),
			new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Assessment"),
			new Uri("http://medicine.manchester.ac.uk/TEWPL/CRAMPONv6#Intended_Learning_Outcome")
	};
	public static final String [] airportLabels = new String [] {
			/*"Time<br/>Period",*/ "Learning<br/>Activity", "Index<br/>Clinical<br/>Situation",
			"Competency", "Assessment",	"Intended Learning<br/>Outcome"
	};
	public static final Point [] airportOffsets = new Point [] {
			/*new Point(120,92),*/ new Point(360,107), new Point(375,300),
			new Point(310,365),	new Point(95,350), new Point(130,110) /*new Point(230,220)*/
	};
	/*public static final PointD [] airportOffsetsRelative = new PointD [] {
		new PointD(0.253,0.200), new PointD(0.759,0.232),
		new PointD(0.791,0.651), new PointD(0.654,0.792),
		new PointD(0.200,0.759), new PointD(0.485,0.477)
	};*/
	public static final Point [] airportLabelOffsets = new Point [] {
			/*new Point(-21,-51),*/ new Point(-26,-51), new Point(26,-24),
			new Point(-35,18), new Point(-35,17), new Point(-45,-50)
	};
	
	// Airport colours
	public static final Color colorAirport = new Color(0,135,255);
	public static final Color colorAirportSelected = new Color(0,204,255); //new Color(0,204,0);
	public static final Color colorAirportDest = new Color(255,0,0);
	public static final Color colorAirportDestSelected = new Color(255,204,0);
	public static final Color colorAirportDestEnroute = new Color(180,0,0);
	public static final Color colorAirportDisabled = new Color(192,192,192);
	
	// Route colours
	public static final Color colorRoute = new Color(255,0,0);
	public static final Color colorRouteEnroute = new Color(180,0,0);
	
	// Island images
	public static final String imageBaseUrl = "iceiface/images/";
	public static final String[] islandUrls = new String[] {
		/*imageBaseUrl + "island1.png",*/
		imageBaseUrl + "island2.png",
		imageBaseUrl + "island3.png",
		imageBaseUrl + "island4.png",
		imageBaseUrl + "island5.png"
	};
	public static final Point [] islandOffsets = new Point [] {
			/*new Point(120,92),*/ new Point(365,107),
			new Point(346,338), new Point(100,350),
			new Point(125,102)/*new Point(224,210)*/
	};
	/*public static final PointD [] islandOffsetsRelative = new PointD [] {
		new PointD(0.255, 0.2), new PointD(0.776, 0.232),
		new PointD(0.736, 0.734), new PointD(0.213, 0.761),
		new PointD(0.476, 0.456)
	};*/
	public static final float [] islandSizeModifiers = new float [] {
			/*(float) 0.32,*/ (float) 0.23, (float) 0.32,
			(float) 0.3,(float) 0.32
	};
	
	// Reset and Help icons
	public static final String resetIconUrl = imageBaseUrl + "refresh_24.png";
	public static final String helpIconUrl = imageBaseUrl + "help_24.png";
	
}
